const isLogin = true;


/**
 * 条件渲染
 * @returns {JSX.Element}
 * @constructor
 */
function ConditionalRendering() {
    return (
        <div className="StyleProcessing">
            {/**实现基础条件渲染 */}
            {/**逻辑与 && */}
            {isLogin && <span>this is true</span>}

            {/**三元运算 */}
            {isLogin ? <span>MangoPie</span> : <span>please Login !!!</span>}

        </div>
    )
}
export default ConditionalRendering;